package com.naiterui.ehp.bs.cms.modules.wms.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import com.naiterui.ehp.bs.cms.common.entity.BaseTree;

import lombok.Data;
import lombok.EqualsAndHashCode;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("p_category")
@ApiModel(description = "展示分类分类")
public class Category extends BaseTree implements Serializable {
    private static final long serialVersionUID = 8225331950302133356L;

    /**
     * 分类名
     */
    @ApiModelProperty(value = "分类名")
    private String name;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    private String description;

    /**
     * 已关联商品数量
     */
    @ApiModelProperty(value = "已关联商品数量")
    private Integer pNumber;

    /**
     * 在售商品数量
     */
    @ApiModelProperty(value = "在售商品数量")
    private Integer onSale;

    /**
     * icon图标
     */
    @ApiModelProperty(value = "icon图标")
    private String icon;

}
